
#ifndef   BUSINESS_H   
#define   BUSINESS_H 

#include<string>
#include<iostream>
using namespace std;
typedef string (*PSTRING_TEN)[10];
typedef string (*PSTRING_TWO)[2];
typedef void **PVOIDARRAY;
enum _state{success,fail} ;

const string AND="and";
const string OR="or";
const string BEFORE="before";
const string FRONT="front";
const string COMMAND="command:";
const string COMMAND_SECOND="commandSecond";
const int MAX_COM=10;

class Mediator;
class Business
{
	public:
		Business(Mediator* mediator)
		{
			this->pmediator=mediator;
		}
		 

		virtual _state work(){return success;};
		 virtual _state  work(string rawStuff){return success;}
		  void addjob();
		  virtual PVOIDARRAY Getkey( ){return NULL;};
		  virtual void keywordReceive(string **p){};
		  virtual _state Modify(string a,string b){return success;};
		  virtual ~Business (){cout<<"business is die"<<endl;}
		  virtual string* get(bool n){return NULL;}

		


	protected:
		int jobs;
		_state state;
	public:

		Mediator* pmediator;
		


};

class Business_Analysis;

#endif